<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">

        .class01,#id01,#id02{
            color: greenyellow;
            font-size: 20px;
            border: 5px solid dodgerblue;
        }

    </style>
</head>
<body>

<div class="class01">标签1</div>
<div id="id01">标签2</div>

<br/><br/>

<span class="class01">标签1</span>
<span id="id02">标签2</span>

</body>
</html>